from .celery import app


# 生成订单任务
@app.task()
def make_order():
    with open(r'D:\Users\ycc\PycharmProjects\luffy_api\script\2 celery的包结构\celery_task\order.txt', 'a', encoding='utf-8') as f:
        f.write('生成一条订单\n')
    return True
